libxl: fix double free of ifname, when makes args for qemu.
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 13 Dec 2010 17:58:20 +0000 (17:58 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 13 Dec 2010 17:58:20 +0000 (17:58 +0000)
commit3c97df22bee25ff0fc3d7f3b8642a5aba076b62b
treef44c35f33ba5bc56cc361bfcaf7efdc26ef92885
parentf662bb114a5d5ce24ce1cdcd0e36136c758ba5d7
libxl: fix double free of ifname, when makes args for qemu.

In libxl_build_device_model_args_new, vifs[i].ifname can be free two
times, by the gc, and by freeing the vifs structures. This patch avoids
this.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
 tools/libxl/libxl.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
tools/libxl/libxl.c